package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.ScenicComment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScenicCommentRepository extends MongoRepository<ScenicComment,String> {
    List<ScenicComment> findByUserId(Long id);

    List<ScenicComment> findByUserIdAndCommentType(Long id, int i);

    List<ScenicComment> findByRefId(String id);

    List<ScenicComment> findByRefIdAndCommentType(String id, int commentType);
}
